import random

class Agent:
	def __init__(self,self.nb_shape,nb_symbols):
		print "init"
		
	def execute(self,agent2):
		print "execute"
class Experience:
	#experience minimale : 1, 4, 4, 2, ?
	def __init__(self,piece_length,nb_shape,nb_symbol,nb_agents,nb_tasks):
		self.piece_length=piece_length
		self.nb_shape=nb_shape
		self.nb_symbol=nb_symbol
		self.nb_agents=nb_agents
		self.nb_tasks=nb_tasks
		self.pop=[agent(self) for x in range(1,nb_agents)
		self.symbols
	def lancer(self):
		#On fait effectuer la tche plusieurs fois de suite par des agents aleatoires
		for i in range(1,self.nb_tasks):
			r1=random.randint(0,self.nb_agents)
			r2=random.randint(0,self.nb_agents)
			while r2==r1
				r2=random.randint(0,self.nb_agents)
			Task(self.piece_length,self.pop[r1],self.pop[r2]).execute()
class Task:
	def __init__(self,piece_length,agent1,agent2):
		self.piece_length=piece_length
		self.agent1=agent1
		self.agent2=agent1
	#fonction qui gere le deroulement de la tache
	def execute(self):
		self.agent1.decide(self.agent2)

exp=Experience
	